if (typeof window !== 'undefined' && !(window as any).process) {
  ;(window as any).process = {
    env: {
      // Vite/Tauri 的环境变量
      NODE_ENV: import.meta.env.MODE,  // 'development' 或 'production'
      DEV: import.meta.env.DEV,        // true/false
      PROD: import.meta.env.PROD,      // true/false
    }
  }
}


import { createApp } from 'vue'
import naive from 'naive-ui'
import { createPinia } from 'pinia';  // 引入 Pinia
import router from './router'
import App from './App.vue'



const app = createApp(App)
app.use(router)
app.use(naive)
app.use(createPinia());  // 使用 Pinia
app.mount('#app')